package library.and.xps.com.step.m.model;

import io.realm.RealmList;
import io.realm.RealmObject;
import io.realm.annotations.PrimaryKey;
import io.realm.annotations.RealmClass;

@RealmClass
public class User extends RealmObject {
    @PrimaryKey
    String userid = "";
    String nickname = "";
    String sex = "";
    String phone = "";
    String token = "";
    String desStepCount = "";
    String name_in_team = "";
    String ico = "";//头像
    String stature = "";//身高
    String weight = "";//体重
    String stepperday = "";//每日计划步数
    String JpushId = "";//极光id
    RealmList<Team> teams = new RealmList<>();

    public RealmList<Team> getTeams() {
        return teams;
    }

    public void setTeams(RealmList<Team> teams) {
        this.teams = teams;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getUserid() {
        return userid;
    }

    public void setUserid(String userid) {
        this.userid = userid;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }


    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public String getStepperday() {
        return stepperday;
    }

    public String getJpushId() {
        return JpushId;
    }

    public void setJpushId(String jpushId) {
        JpushId = jpushId;
    }

    public void setStepperday(String stepperday) {
        this.stepperday = stepperday;
    }

    public String getDesStepCount() {
        return desStepCount;
    }

    public void setDesStepCount(String desStepCount) {
        this.desStepCount = desStepCount;
    }

    public String getName_in_team() {
        return name_in_team;
    }

    public void setName_in_team(String name_in_team) {
        this.name_in_team = name_in_team;
    }

    public String getIco() {
        return ico;
    }

    public void setIco(String ico) {
        this.ico = ico;
    }

    public String getStature() {
        return stature;
    }

    public void setStature(String stature) {
        this.stature = stature;
    }

    public String getWeight() {
        return weight;
    }

    public void setWeight(String weight) {
        this.weight = weight;
    }

    @Override
    public String toString() {
        return "User{" +
                "userid='" + userid + '\'' +
                ", nickname='" + nickname + '\'' +
                ", sex='" + sex + '\'' +
                ", phone='" + phone + '\'' +
                ", token='" + token + '\'' +
                ", desStepCount='" + desStepCount + '\'' +
                ", name_in_team='" + name_in_team + '\'' +
                ", ico='" + ico + '\'' +
                ", stature='" + stature + '\'' +
                ", weight='" + weight + '\'' +
                ", stepperday='" + stepperday + '\'' +
                ", teams=" + teams.toString() +
                ", JpushId=" + JpushId+
                '}';
    }
}
